package com.omega.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.omega.dao.MeasuringUnitDao;
import com.omega.entity.MeasuringUnit;

@Repository
public class MeasuringUnitDaoImpl extends GenericDaoImpl<MeasuringUnit> implements MeasuringUnitDao {

	public MeasuringUnitDaoImpl(){
		super();
        setClazz(MeasuringUnit.class);
	}
	
	@Override
	public void addMeasuringUnit(MeasuringUnit measuringUnit) {
		save(measuringUnit);

	}

	@Override
	public List<MeasuringUnit> loadAllMeasuringUnits() {
		return loadAll();
	}

	@Override
	public MeasuringUnit loadById(long measuringUnitId) {
		return loadByid(measuringUnitId);
	}

	@Override
	public void updateSupplier(MeasuringUnit measuringUnit) {
		update(measuringUnit);
		
	}

}
